
package com.dream.cgomall.entity;

import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * 实体类 评论表
 */
@Data
public class CgoGoodEvaluate {
    //评论id
    private Integer id;
    //商品id
    private Integer goodId;
    //评论内容
    private String evaluate;
    //评论的用户id
    private CgoAdmin userId;
    //评论点赞数
    private Integer useFul;
    //评论时间
    private LocalDate createTime;
    //评论图片
    private List<CgoCommentimage> cgoCommentImages;

    public CgoGoodEvaluate(Integer goodId, String evaluate, CgoAdmin userId, Integer useFul, LocalDate createTime) {
        this.goodId = goodId;
        this.evaluate = evaluate;
        this.userId = userId;
        this.useFul = useFul;
        this.createTime = createTime;
    }

    public CgoGoodEvaluate() {
    }
}
